﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for DriverClaimHistory
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class DriverClaimHistory
    {
        private Int64 _claimid;
        private Int64 _cecarid;
        private Int64 _providercompanyid;
        private DateTime _accidentdate;
        private string _natureofaccident;
        private float _claimamount;
        private string _typeofclaim;
        private Int64 _refceuserid;
        //common field name
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public DriverClaimHistory()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 ClaimId
        {
            get { return _claimid; }
            set { _claimid = value; }
        }

        public Int64 CECarId
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public DateTime AccidentDate
        {
            get { return _accidentdate; }
            set { _accidentdate = value; }
        }

        public string NatureofAccident
        {
            get { return _natureofaccident; }
            set { _natureofaccident = value; }
        }

        public float ClaimAmount
        {
            get { return _claimamount; }
            set { _claimamount = value; }
        }

        public string TypeofClaim
        {
            get { return _typeofclaim; }
            set { _typeofclaim = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        private void ClearFields()
        {
            _claimid = 0;
            _cecarid = 0;
            _providercompanyid = 0;
            _accidentdate = CE.Global.General.GetUTCDateTime();
            _natureofaccident = "";
            _claimamount = 0.0f;
            _typeofclaim = "";
            _refceuserid = 0;
            //common field name
            _status = true;
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }
    }
}